package com.song.shop.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class FanoutReceiver1 {
	
	@RabbitListener(queues = "fanout.A")
	public void process(String msg) {
		System.out.println("FanoutReceiver1接到fanout.A消息："+msg);
	}
	
	@RabbitListener(queues = "fanout.B")
	public void processB(String msg) {
		System.out.println("FanoutReceiver1接到fanout.B消息："+msg);
	}
	
	@RabbitListener(queues = "fanout.C")
	public void processC(String msg) {
		System.out.println("FanoutReceiver1接到fanout.C消息："+msg);
	}
	@RabbitListener(queues = "fanout.D")
	public void processD(String msg) {
		System.out.println("FanoutReceiver1接到fanout.D消息："+msg);
	}
	
	@RabbitListener(queues = "fanout.E")
	public void processE(String msg) {
		System.out.println("FanoutReceiver1接到fanout.E消息："+msg);
	}
}
